// 简单的管理员密码验证
const ADMIN_PASSWORD = '952711'; // 改成你想要的密码

export function login(password) {
  if (password === ADMIN_PASSWORD) {
    localStorage.setItem('isAdmin', 'true');
    return true;
  }
  return false;
}

export function logout() {
  localStorage.removeItem('isAdmin');
}

export function isAdmin() {
  return localStorage.getItem('isAdmin') === 'true';
} 